/**
 * 
 */
package ca.fuguo.pos.swingui;

import java.awt.Container;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;

/**
 * @author Jeff
 *
 */
public class FuGuoGui {
	private static JFrame frame;
	private static final ImageIcon FRAME_ICON = new ImageIcon(FuGuoGui.class.getResource("/icons/wabit-16.png"));
	
	public FuGuoGui() {
		frame = new JFrame("FU GUO POS");
	}
	
	public void buildGUI() {
		Container cp = frame.getContentPane();
		frame.setIconImage(FRAME_ICON.getImage());
		frame.setSize(800, 300);
		frame.setVisible(true);
	}
	
	public static void main (String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
            public void run() {
            	FuGuoGui fuguoObj = new FuGuoGui();
            	
        		fuguoObj.buildGUI(); 
        		SimpleTableDemo newContentPane = new SimpleTableDemo();
                newContentPane.setOpaque(true); //content panes must be opaque
                frame.setContentPane(newContentPane);
            }
        });
	}
}

